package cn.isjinhao.se.script.generator;

import cn.isjinhao.se.structure.impl.Table;
import cn.isjinhao.se.script.FileWrapper;
import cn.isjinhao.se.script.parameter.DefaultParameterReader;

/**
 * @Author ISJINHAO
 * @Date 2021/6/30 14:19
 */
public class XlsxScriptGenerator extends AbstractScriptGenerator {

    public XlsxScriptGenerator() {
        super(new DefaultParameterReader());
    }

    @Override
    protected Table extractParameterFromFile(FileWrapper file) {
        return parameterReader.readFromXlsxFile(file.getFile(), file.getSheetNo());
    }

}
